package com.xsr.mapper;

import com.xsr.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.awt.print.Book;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project peopleThing
 * @date 2022/9/11 16:26
 */

public interface UserMapper {



 @Select("select * from user where username=#{username} and password=#{password} ")
 User SelectByNameAndPwd(@Param("username") String username, @Param("password") String  password);
@Insert("insert into user values(null,#{username},#{password},#{status})")
 void InsertUser(User user);
}
